#include <fcntl.h>
#include <stdio.h>

int main(int argc, char **argv) {
	
	int fd;
	fd = open(argv[1], O_RDONLY);
	int i = 0;
	unsigned char byte;
	while(read(fd, &byte, 1) > 0) {
		printf("%d. %c|0x%.2X|", ++i, byte, byte);
		printf("%u \n", byte);
	}
	
	close(fd);
	
	return 0;
}
